﻿

namespace Mulala.Cavan.Domain.MainBoundedContext.SearchModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
using Mulala.Cavan.Domain.MainBoundedContext.ConsignModule;

    public class ConsignBidderSearchFactory
    {

        public static ConsignBidderSearch CreateConsignBidderSearch(int? bidderID, int? bidderCorporationID)
        {
            ConsignBidderSearch search = new ConsignBidderSearch();

            search.BidderID = bidderID.HasValue ? bidderID.Value : 0;
            search.BidderCorporationID = bidderCorporationID.HasValue ? bidderCorporationID.Value : 0;

            return search;
        }

        public static ConsignBidderSearch CreateConsignBidderSearch(int? bidderID, int? bidderCorporationID, ConsignIdentifier.ConsignBidderStatus consignBidderStatus)
        {
            ConsignBidderSearch search = new ConsignBidderSearch();

            search.BidderID = bidderID.HasValue ? bidderID.Value : 0;
            search.BidderCorporationID = bidderCorporationID.HasValue ? bidderCorporationID.Value : 0;
            search.ConsignBidderStatus = consignBidderStatus;

            return search;
        }

        public static ConsignBidderSearch CreateConsignBidderSearch(int proprietorID)
        {
            ConsignBidderSearch search = new ConsignBidderSearch();
            search.ProprietorID = proprietorID;

            return search;
        }

        public static ConsignBidderSearch CreateConsignBidderSearch(int proprietorID, ConsignIdentifier.ConsignStatus status)
        {
            ConsignBidderSearch search = new ConsignBidderSearch();
            search.ProprietorID = proprietorID;
            search.ConsignStatus = status;
            return search;
        }
    }
}
